<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="/assets/css/login.css">
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
</head>
    <div class="login-container">
        <!-- 右侧图片 -->
        <div class="left-bg"></div>
        <!-- 左侧登录区 -->
        <div class="right-warp">
            <!-- 登录区域 -->
            <div class="box">
                <div class="login-c">
                     <form class="layui-form"  id="login-res" lay-filter='rg-log'>
                    <h2>登录</h2>
                    <!-- 用户名 -->
                <div class="layui-form-item">
                    <!-- 用户名的图标 -->
                    <i class="layui-icon layui-icon-username"></i>
                        <input
                        class="layui-input"
                        type="text"
                        name="username"
                        placeholder="请输入用户名"
                        >
                </div>
                <div class="layui-form-item">
                    <!-- 密码框的图标 -->
                    <i class="layui-icon layui-icon-password"></i>
                        <input
                        class="layui-input"
                        type="password"
                        name="password"
                        autocomplete="off"
                        placeholder="请输入密码"
                        >
                </div>
                <!-- 登录按钮 -->
                <div class="layui-form-item">
                        <button class="layui-btn layui-btn-fluid layui-btn-normal">登录</button>
                </div>
                <div class="layui-form-item item-link">
                    <a href="#" id="reg-login">去注册</a>
                </div>
                </form>
                </div>
                <div class="reg-c">
                    <form class="layui-form reg-form" lay-filter="reg-form">
                   <h2>注册</h2>
                   <!-- 用户名 -->
               <div class="layui-form-item">
                   <!-- 用户名的图标 -->
                   <i class="layui-icon layui-icon-username"></i>
                       <input
                       class="layui-input"
                       type="text"
                       name="username"
                       placeholder="请输入用户名"
                       autocomplete="off"
                       required
                       lay-verify = 'required|username'
                       >
               </div>
               <div class="layui-form-item reg-link">
                   <!-- 密码框的图标 -->
                   <i class="layui-icon layui-icon-password"></i>
                       <input
                       class="layui-input"
                       type="password"
                       name="password"
                       placeholder="请输入密码"
                       required
                       lay-verify = 'required|password'
                       >
               </div>
               <div class="layui-form-item">
                <!-- 第二个密码框的图标 -->
                <i class="layui-icon layui-icon-password"></i>
                    <input
                    class="layui-input"
                    type="password"
                    name="password"
                    autocomplete="off"
                    placeholder="请再次输入密码"
                    required
                    lay-verify = 'required|password|rppassword'
                    >
            </div>
               <!-- 登录按钮 -->
               <div class="layui-form-item">
                       <button  lay-submit class="layui-btn layui-btn-fluid layui-btn-normal">注册</button>
               </div>
               <div class="layui-form-item item-link">
                   <a href="#" id="go-login">去登录 </a>
               </div>
               </form>
               </div>
                
            </div>
        </div>
        
    </div>
    
<body>
    <script src="/assets/lib/layui/layui.all.js"></script>
     <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/js/login.js"></script>
   
</body>
</html>